package vn.edu.saigontech.ncms.web.system;

import vn.edu.saigontech.ncms.util.Checker;
import vn.edu.saigontech.ncms.web.AbstractValidator;

@SuppressWarnings("serial")
public class ValidateSchoolGradeAction extends AbstractValidator {
	private String title;
	
	@Override
	public String check() {
		if(Checker.isEmpty(this.title)) 
			this.sendKeyError("validator.required", "title");
		return this.toSuccess();
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}